package com.yx.china.project.service;

import com.yx.china.project.entities.Payment;
import com.yx.china.project.entities.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name ="pay-service")
public interface PayService {
    @GetMapping(value = "/payment/get/{id}")
    public ResponseResult<Payment> getPaymentById(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/feign/timeout")
    public String timeOut() ;
}
